﻿
using System.Web.Mvc;
using Kazuku.Core.Models;

namespace Kazuku.Html {
	public class HtmlRegistration : ModuleRegistration {
		public override void RegisterArea(AreaRegistrationContext context) {
			MapRoute(context, "html",
					 new { area = "Kazuku.Html", controller = "html", action = "Index" });
			MapRoute(context, "html/{slug}",
					 new { area = "Kazuku.Html", controller = "html", action = "ShowSlug" });
			MapRoute(context, "html/{action}/{id}",
					 new { area = "Kazuku.Html", controller = "html", action = "Index", id = "" });
			MapRoute(context, "html/{controller}/{action}",
					 new { area = "Kazuku.Html", controller = "html", action = "index" });

			RegisterTheViewsInTheEmbeddedViewEngine(GetType());
		}

		public override string AreaName {
			get { return "Kazuku.Html"; }
		}
	}
}
